package com.argticling.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import com.argticling.model.chanel.Contact;
import com.argticling.model.chanel.ContactTypeEnum;
import com.argticling.service.ContactService;

@Controller
public class ContactController extends MultiActionController {

//	@Autowired
//    private ContactService contactService;
//
//    @RequestMapping(value = "/contact/getContactsByType.htm", method = RequestMethod.POST)
//    public void getContactsByType(@RequestParam(ParamConstants.CONTACT_TYPE) String type) {
//        final ContactTypeEnum contactType = type != null ? ContactTypeEnum.valueOf(type) : null;
//        switch (contactType) {
//            case FACEBOOK:
//                getFacebookContacts();
//                break;
//            case EMAIL:
//                getEmailContacts();
//                break;
//            case TWITTER:
//                getTwitterContacts();
//                break;
//        }
//    }
//
//    private List<Contact> getFacebookContacts() {
//        List<Contact> fbContacts = contactService.getFacebookContacts();
//        return fbContacts;
//    }
//
//    private List<Contact> getEmailContacts() {
//        List<Contact> emailContacts = contactService.getEmailContacts();
//        return emailContacts;
//    }
//
//    private List<Contact> getTwitterContacts() {
//        List<Contact> twitterContacts = contactService.getTwitterContacts();
//        return twitterContacts;
//    }
//

}
